package com.darkflame.client.interfaces;


public interface SSSGenericFileManager {

	void getText(String location,FileCallbackRunnable runoncomplete,  FileCallbackError runonerror , boolean forcePost, boolean useCache);
	
	void getText(String location,FileCallbackRunnable runoncomplete,  FileCallbackError runonerror , boolean forcePost);
	
	
	/** returns the absolute path given a relative one.
	 * If used locally this will be absolute to the running directory of this code on the hard drive
	 * if used on a sever this will be the full url of the file including the http **/
	String getAbsolutePath(String relativepath);

	/** callback class type designed to be used as a response when fetching text from a server **/
	public static interface FileCallbackRunnable {		
		void run(String responseData, int responseCode);

	}
	/** callback class type designed to be used when theres an error fetching text from a server **/
	public static interface FileCallbackError {		
		void run(String errorData, Throwable exception);

	}

	
}
